package scau.erps.util;

/**
 * 
 * @author outsider
 *
 */
public class CalculateMaterial {
	/**
	 * @author outsider
	 * 计算账期
	 * 
	 */
	public static String getperiod(String data1,String data2){
		int num1=0,num2=0;
		if (data1.equals("")==false) num1=Integer.parseInt(data1);
		if (data2.equals("")==false) num2=Integer.parseInt(data2);
		String message;
	    message="4Q";
		if (num1+num2<=16) message="3Q";
		if (num1+num2<=12) message="2Q";
		if (num1+num2<=8)  message="1Q";
		if (num1+num2<=4)  message="现金";
		return message;
	}
}
